package com.yang.leather.admin.dao.impl;

import org.springframework.stereotype.Service;

import com.yang.leather.admin.dao.IAdminUserDao;
import com.yang.leather.admin.pojo.AdminUser;
import com.yang.leather.core.LeatherCoreDaoImpl;

@Service("adminUserDao")
public class AdminUserDaoImpl extends LeatherCoreDaoImpl<AdminUser> implements IAdminUserDao{

	public AdminUser getByAccount(String account) {
		String hql = "from AdminUser u where u.account=?";
		return (AdminUser) findUnique(hql, account);
	}

}
